<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>结算单详细信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=yes">
    <!--<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">-->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/mui/mui.min.css" />
    <link rel="stylesheet" href="../../../css/app.css" />
    <link rel="stylesheet" href="../../../css/table.css" />
    <link href="../../../css/mui/mui.poppicker.css" rel="stylesheet" />
    <link href="../../../css/mui/mui.picker.min.css" rel="stylesheet" type="text/css"/>
    <style>
        html,
        body {
            background-color: #efeff4;
        }

        .mui-views,
        .mui-view,
        .mui-pages,
        .mui-page,
        .mui-page-content {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background-color: #efeff4;
        }

        .mui-pages {
            top: 46px;
            height: auto;
        }

        .mui-scroll-wrapper,
        .mui-scroll {
            background-color: #efeff4;
        }

        .mui-page.mui-transitioning {
            -webkit-transition: -webkit-transform 300ms ease;
            transition: transform 300ms ease;
        }

        .mui-page-left {
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }

        .mui-ios .mui-page-left {
            -webkit-transform: translate3d(-20%, 0, 0);
            transform: translate3d(-20%, 0, 0);
        }

        .mui-navbar {
            position: fixed;
            right: 0;
            left: 0;
            z-index: 10;
            height: 44px;
            background-color: #f7f7f8;
        }

        .mui-navbar .mui-bar {
            position: absolute;
            background: transparent;
            text-align: center;
        }

        .mui-android .mui-navbar-inner.mui-navbar-left {
            opacity: 0;
        }

        .mui-ios .mui-navbar-left .mui-left,
        .mui-ios .mui-navbar-left .mui-center,
        .mui-ios .mui-navbar-left .mui-right {
            opacity: 0;
        }

        .mui-navbar .mui-btn-nav {
            -webkit-transition: none;
            transition: none;
            -webkit-transition-duration: .0s;
            transition-duration: .0s;
        }

        .mui-navbar .mui-bar .mui-title {
            display: inline-block;
            width: auto;
        }

        .mui-page-shadow {
            position: absolute;
            right: 100%;
            top: 0;
            width: 16px;
            height: 100%;
            z-index: -1;
            content: '';
        }

        .mui-page-shadow {
            background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
            background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
        }

        .mui-navbar-inner.mui-transitioning,
        .mui-navbar-inner .mui-transitioning {
            -webkit-transition: opacity 300ms ease, -webkit-transform 300ms ease;
            transition: opacity 300ms ease, transform 300ms ease;
        }

        .mui-page {
            display: none;
        }

        .mui-pages .mui-page {
            display: block;
        }

        .head {
            height: 40px;
        }

        .mui-fullscreen {
            position: fixed;
            z-index: 20;
            background-color: #000;
        }

        .mui-ios .mui-navbar .mui-bar .mui-title {
            position: static;
        }
        .mySpan{
            width: 20%;
            float: left;
            text-align: left;
        }
        .mui-checkbox input[type=checkbox]:before, .mui-radio input[type=radio]:before {
            font-family: Muiicons;
            /*font-size: 25px;*/
            line-height: 1.42857143;
            text-decoration: none;
            color: #000000;
            border-radius: 0;
            background: 0 0;
            -webkit-font-smoothing: antialiased;
        }

        th{
            font-weight: bold;
        }

    </style>
</head>

<body class="mui-fullscreen">
<!--页面主结构开始-->
<div id="app" class="mui-views">
    <div class="mui-view">
        <div class="mui-navbar">
        </div>
        <div class="mui-pages">
        </div>
    </div>
</div>
<!--页面主结构结束-->
<!--单页面开始-->
<div id="mainPage" class="mui-page">
    <!--页面标题栏开始-->
    <div class="mui-navbar-inner mui-bar mui-bar-nav">
        <button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
            <span class="mui-icon mui-icon-left-nav"></span>
        </button>
        <h1 class="mui-center mui-title">结算单详细信息</h1>
        <!--<button type="button" class="mui-right mui-btn-link mui-btn-nav mui-pull-right" style="margin-right: 10px;">-->
            <!--<a class="mui-icon mui-icon-search mui-pull-right" href="#selectorPage"></a>-->
        <!--</button>-->
    </div>
    <!--页面标题栏结束-->
    <!--页面主内容区开始-->
    <div class="mui-page-content">
        <div class="mui-scroll-wrapper">
            <div class="mui-scroll search">
                <ul class="mui-table-view">
                    <li class="mui-table-view-cell">
                        <span class="mySpan">结算单号:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">结算日期:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">结算金额:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">收款主体:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">收款单元:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">累计清算:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">付款主体:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">付款单元:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">累计未清:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>
                    <li class="mui-table-view-cell">
                        <span class="mySpan">摘要备注:</span>
                        <input class="mui-pull-left search-input" disabled type="text" />
                    </li>

                </ul>
            </div>
        </div>
    </div>
    <!--页面主内容区结束-->
</div>
<!--单页面结束-->

<!--table模版-->
<script id="tableTem" type="text/html">
    <table class="am-table am-table-bordered am-table-striped am-text-nowrap table-bordered">
        {{if $data.length === 0}}
        <thead>
        <tr class="no-data">
            <th>暂无数据!</th>
        </tr>
        </thead>
        {{else}}
        <thead class="rowHeader">
        <tr>
            <th width="10%">
                <div class="mui-checkbox">
                    <input type="checkbox" class="checkAll" onchange="checkAll(this)" />
                </div>
            </th>
            <th>交易日期</th>
            <th>资源名称</th>
            <th>资源状态</th>
            <th>交易数量</th>
            <th>交易单价</th>
            <th>交易金额</th>
            <th>对账金额</th>
            <th>差异金额</th>
            <th>对账备注</th>
        </tr>
        </thead>
        <tbody>
        {{ each $data value index }}
        <tr>
            <td width="10%" data-id={{value.jsId}}>
                <div class="mui-checkbox">
                    <input type="checkbox" class="checkOne" onchange="checkOne(this)" />
                </div>
            </td>
            <td>{{value.accMainDate | formatTime}}</td>
            <td>{{value.accRecvSubjectNick }}</td>
            <td>{{value.accRecvWareName }}</td>
            <td>{{value.accPaySubjectNick}}</td>
            <td>{{value.accPayWareName}}</td>
            <td>{{value.accMxResName}}</td>
            <td>{{value.accMxStateName}}</td>
            <td>{{value.accMxQty}}</td>
            <td>{{value.accMxPrice}}</td>
            <td>{{value.accMxAmount | toFixed}}</td>
        </tr>
        {{ /each }}
        </tbody>
        {{/if}}
    </table>
</script>


</body>
<script src="../../../js/mui/mui.min.js"></script>
<script src="../../../js/mui/mui.view.js"></script>
<script src="../../../js/libs/art-template.js"></script>
<script type="text/javascript" src="../../../js/libs/jquery.min.js" ></script>
<script type="text/javascript" src="../../../js/comprehensive.js" ></script>
<script type="text/javascript" src="../../../js/mui/mui.picker.js" ></script>
<script type="text/javascript" src="../../../js/mui/mui.dtpicker.js" ></script>
<script type="text/javascript" src="../../../js/mui/mui.poppicker.js" ></script>
<script type="text/javascript" src="../../../js/YrTable.js" ></script>
<script type="text/javascript" src="../../../js/YrDate.js" ></script>
<!--自己的js-->
<script src="../../../js/common.js"></script>
<script src="../../../js/utils/index.js"></script>
<script src="approveDetail.js"></script>

<script>
	mui.init();
	//初始化单页view
	var viewApi = mui('#app').view({
		defaultPage: '#mainPage'
	});
	//初始化单页的区域滚动
	mui('.mui-scroll-wrapper').scroll();
	var view = viewApi.view;
	(function($) {
		//处理view的后退与webview后退
		var oldBack = $.back;
		$.back = function() {
			if(viewApi.canBack()) { //如果view可以后退，则执行view的后退
				viewApi.back();
			} else { //执行webview后退
				oldBack();
			}
		};
		//监听页面切换事件方案1,通过view元素监听所有页面切换事件，目前提供pageBeforeShow|pageShow|pageBeforeBack|pageBack四种事件(before事件为动画开始前触发)
		//第一个参数为事件名称，第二个参数为事件回调，其中e.detail.page为当前页面的html对象
		view.addEventListener('pageBeforeShow', function(e) {
			//				console.log(e.detail.page.id + ' beforeShow');
		});
		view.addEventListener('pageShow', function(e) {
			//				console.log(e.detail.page.id + ' show');
		});
		view.addEventListener('pageBeforeBack', function(e) {
			//				console.log(e.detail.page.id + ' beforeBack');
		});
		view.addEventListener('pageBack', function(e) {
			//				console.log(e.detail.page.id + ' back');
		});
	})(mui);

</script>

</html>